package com.wanli.webfluxthymeleaf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import reactor.core.publisher.Mono;

@Controller
public class HomeController {
    @GetMapping("/home")
    public Mono<String> home() {
        return Mono.just("index");
    }

    @GetMapping("/login")
    public Mono<String> login() {
        return Mono.just("login");
    }

    @GetMapping("/logout")
    public Mono<String> logout() {
        return Mono.just("logout");
    }

    @GetMapping("/register")
    public Mono<String> register() {
        return Mono.just("register");
    }
}
